﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using NLBS.Data.Interface;
using NLBS.Entity;
namespace NLBS.Data.SqlDataService
{
   public class SmileService:ISmileService
    {
        private DbProvider db
        {
            get
            {
                return DbProvider.Instance();
            }
        }

        #region ISmileService Members

        public IList<Smile> GetSmile()
        {
            return db.GetSmile();
        }

        public Smile GetSmileByID(int smID)
        {
            return db.GetSmileByID(smID);
        }

        public int InsertSmile(Smile sm)
        {
            return db.InsertSmile(sm);
        }

        public void UpdateSmile(Smile sm)
        {
            db.UpdateSmile(sm);
        }

        public void DeleteSmile(int smID)
        {
            db.DeleteSmile(smID);
        }

        #endregion
    }
}
